﻿using BI.CF.Factory;
using BI.CF.IDAL;
using BI.CF.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BI.CF.BLL
{
    public class RepayDetailedBLL
    {
        static CF_Factory sql = CF_Factory.DataBaseType();
        RepayDetailedIDAL IDal = sql.RepayDetailedSQL();

        /// <summary>
        /// 根据ID显示还款信息
        /// </summary>
        /// <param name="Mid"></param>
        /// <returns></returns>
        public PageList.Pager<RepayDetailedModel> ShowRepayDetailed(string TimeMin, string TimeMax, int Mid, int Uid, int PageIndex, int PageSize)
        {
            return IDal.ShowRepayDetailed(TimeMin, TimeMax, Mid, Uid, PageIndex, PageSize);
        }

        /// <summary>
        /// 一次性还清
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool update(RepayDetailedModel model)
        {
            return IDal.update(model);
        }

        /// <summary>
        /// 判断支付密码是否正确
        /// </summary>
        /// <param name="Uid"></param>
        /// <param name="Upwd"></param>
        /// <returns></returns>
        public int RepayDetailedPwd(int Uid,int Upwd)
        {
            return IDal.RepayDetailedPwd(Uid, Upwd);
        }
    }
}
